﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Raider.WinForms.Actions
{
    /// <summary>
    /// Provides event arguments for <see cref="IAction.Update"/> event handlers.
    /// </summary>
    public class UpdateEventArgs : EventArgs
    {
        /// <summary>
        /// Gets <see cref="UpdateEventArgs"/> with no data.
        /// </summary>
        public new static readonly UpdateEventArgs Empty = new UpdateEventArgs();

        /// <summary/>
        public UpdateEventArgs(object argument = null)
        {
            Argument = argument;
        }

        /// <summary>
        /// Gets the event argument (optional).
        /// </summary>
        public object Argument
        {
            get;
            private set;
        }
    }
}
